x=eval(input())
ans=0
der=0
while x>0:
    der+=1
    ans+=x%10
    x//=10
print(der,int(ans))